<?php 
class indexAction extends sfAction{
	public function execute($request){
		$data = array();
		$data['act'] = $request->getParameter('act', 'index');
		$data['id']  = $request->getParameter('id', -1);
		
		$data['cate_id']		= $request->getParameter('cate_id', -1);
		$data['page']				= $request->getParameter('page', 1);
		$data['products']				= Products::getDataListFrontEnd(array('filter_sort_order' => Products::FILTER_SORT_ATTRIBUTE_HOT), array('page' => 1, 'limit' => sfConfig::get('app_product_right_limit')));
		$data['cates'] 			= ProductCates::getDataListFrontEnd();
		$this->setVar('data', $data);
	}
}